<pre class="card card-block card-header mb-3">Model: {{selectedValue | json}}</pre>
<pre class="card card-block card-header mb-3">Selected option: {{selectedOption | json}}</pre>

<input [(ngModel)]="selectedValue"
       [typeahead]="states"
       typeaheadOptionField="name"
       (typeaheadOnSelect)="onSelect($event)"
       class="form-control">
